#ifndef QLED_H
#define QLED_H

#include <QLabel>
#include <QPainter>

class QLed : public QLabel
{    
    Q_OBJECT
public:
    explicit QLed(QWidget *parent=0);
    void setColor(QColor);
    void setStatus(bool);
private:
    QColor color;
    QPainter paint;
    void paintEvent(QPaintEvent *);
};

#endif // QLED_H
